Replication Data for Partisan Hostility and American Democracy 
Druckman, Klar, Krupnikov, Levendusky and Ryan 
Fall 2023 

This readme explains the data used to produce the analyses in the book Partisan Hostility and American Democracy by Druckman et al. (University of Chicago Press, 2024). This archive has two folders: 

Raw Data: 

This contains the raw merged file of the survey data. The file �Affective Polarization Merged Final July 21 2021 Final.dta� contains the raw data from all four waves of our survey, merged together into one file. 

The file "demographics.do" creates the demographic descriptions of the data included in the appendix to Chapter 3. 

The file �prepare_data_for_r_for_graphing.do� recodes variables and gets them ready to be analyzed in R. This is included only for completeness to see how we moved from raw data to the graphs/tables. If you just want to replicate the analyses in the book, begin with the files in the for tables and graphs folder. 

The file� 

For Tables and Graphs: 

To replicate the tables and figures in the book, open the file �master.r� and set the working directory correctly. You should then be able to run the file and have it produce the tables/figures from the book. Note that tables will *not* be as formatted in the book, but rather will be in html or word format and require additional formatting. The graphs will be as they appear in the book, the tables will require supplemental reformatting.   
